package com.netless.whitesdk;

import androidx.annotation.NonNull;

import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.BinaryMessenger;

/** WhitesdkPlugin */
public class WhitesdkPlugin implements FlutterPlugin {

  @Override
  public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
    BinaryMessenger messenger = binding.getBinaryMessenger();
     binding
        .getPlatformViewRegistry()
        .registerViewFactory("plugins.netless.link/whiteboard", new WhiteSdkViewFactory(messenger, /*containerView=*/ null));
  }

  @Override
  public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {

  }
}
